// Decompiled by GOOSIN CO,LTD Copyright 2010 Pavel Kouznetsov.
// home page: http://www.Goosin.net
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   SdateFormat.java

package include.nseer_cookie;


public class SdateFormat
{

	public SdateFormat()
	{
	}

	public static String format(String obj, String twins)
	{
		String result = "";
		try
		{
			if (obj.equals("1800-01-01 00:00:00.0"))
				result = twins;
			else
				result = obj;
		}
		catch (Exception ex)
		{
			ex.printStackTrace();
		}
		return result;
	}

	public static String formatId(String id)
	{
		String result = "";
		try
		{
			if (id.indexOf("@") != -1)
				result = id.split("@")[1];
			else
				result = id;
		}
		catch (Exception ex)
		{
			ex.printStackTrace();
		}
		return result;
	}

	public static String formatS(String id, String s)
	{
		String result = "";
		try
		{
			if (id.indexOf(s) != -1)
				result = id.split(s)[1];
			else
				result = id;
		}
		catch (Exception ex)
		{
			ex.printStackTrace();
		}
		return result;
	}
}
